var dbserver = require('../dao/dbserver.js');

// 用户注册
exports.signUp = function(req,res){
	let name = req.body.name;
	let mail = req.body.mail;
	let pwd = req.body.pwd;
	dbserver.buildUser(name,mail,pwd,res);
}

//用户或邮箱是否占用
exports.judgeValue = function(req,res){
	let data = req.body.data;
	let type = req.body.type;
	
	dbserver.countUserValue(data,type,res)
}